import dicApi from "@/api/dictionary";
export function useDictionary() {
  enum GOOD {
    GOOD_UPDOWN_STATUS = "GOOD_UPDOWN_STATUS", //商品上下架状态
    GOOD_SKU_TYPE = "GOOD_SKU_TYPE" //商品规格类型
  }

  async function DICTIONARY(_str: GOOD) {
    return await dicApi.dictionaryDataAll({ code: _str });
  }
  return {
    GOOD,
    DICTIONARY
  };
}
